package com.handpay.zztong.hp.main.model.bannerschannel;

import android.os.Parcel;

import com.handpay.zztong.hp.bean.ResponseBean;

import java.util.List;

/**
 * Created by lyang on 2017/2/20.
 */

public class BannersByChannelBean extends ResponseBean {


    /**
     * items : 3
     * list : [{"bannerId":"00204","bannerLink":"http://pic.handpay.cn/hpay/micro/banner/MPOSBanners/LinkURLResources/test.htm","bannerLinkType":"0","bannerPath":"http://pic.58pic.com/58pic/10/97/33/81u58PICTkw.jpg","bannerType":"1","lastUpdateTime":"20170214162353","linkTitle":"仙境 - 百度（外部 - 内部）","microImageUrl":"http://pic.handpay.cn/hpay/micro"},{"bannerId":"00206","bannerLink":"https://www.baidu.com/index.php?tn=monline_3_dg","bannerLinkType":"1","bannerPath":"http://pic24.nipic.com/20121008/3822951_094451200000_2.jpg","bannerType":"1","lastUpdateTime":"20170209165918","linkTitle":"BUG - 百度（内部 - 外部）","microImageUrl":"http://pic.handpay.cn/hpay/micro"},{"bannerId":"00203","bannerLink":"https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=0&rsv_idx=1&tn=monline_3_dg&wd=%E9%A3%8E%E6%99%AF%E5%9B%BE%E7%89%87&rsv_pq=e3ab1d0b00013e3a&rsv_t=c84b6T9GW7rutfrudSjtqUEhANsf%2BwIo0Hj6EMUZOF%2F%2Fo0tdY5uBA2RJuxJUPzSBmr0I&rqlang=cn&rsv_enter=1&rsv_sug3=4&rsv_sug1=1&rsv_sug7=100","bannerLinkType":"1","bannerPath":"http://pic.qiantucdn.com/58pic/18/13/67/72w58PICshJ_1024.jpg","bannerType":"1","lastUpdateTime":"20170208111515","linkTitle":"夕阳 - 百度（外部 - 外部）","microImageUrl":"http://pic.handpay.cn/hpay/micro"}]
     */

    private String items;
    private List<ListBean> list;

    public String getItems() {
        return items;
    }

    public void setItems(String items) {
        this.items = items;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements android.os.Parcelable {
        /**
         * bannerId : 00204
         * bannerLink : http://pic.handpay.cn/hpay/micro/banner/MPOSBanners/LinkURLResources/test.htm
         * bannerLinkType : 0
         * bannerPath : http://pic.58pic.com/58pic/10/97/33/81u58PICTkw.jpg
         * bannerType : 1
         * lastUpdateTime : 20170214162353
         * linkTitle : 仙境 - 百度（外部 - 内部）
         * microImageUrl : http://pic.handpay.cn/hpay/micro
         */

        private String bannerId;
        private String bannerLink;
        private String bannerLinkType;
        private String bannerPath;
        private String bannerType;
        private String lastUpdateTime;
        private String linkTitle;
        private String microImageUrl;

        public String getBannerId() {
            return bannerId;
        }

        public void setBannerId(String bannerId) {
            this.bannerId = bannerId;
        }

        public String getBannerLink() {
            return bannerLink;
        }

        public void setBannerLink(String bannerLink) {
            this.bannerLink = bannerLink;
        }

        public String getBannerLinkType() {
            return bannerLinkType;
        }

        public void setBannerLinkType(String bannerLinkType) {
            this.bannerLinkType = bannerLinkType;
        }

        public String getBannerPath() {
            return bannerPath;
        }

        public void setBannerPath(String bannerPath) {
            this.bannerPath = bannerPath;
        }

        public String getBannerType() {
            return bannerType;
        }

        public void setBannerType(String bannerType) {
            this.bannerType = bannerType;
        }

        public String getLastUpdateTime() {
            return lastUpdateTime;
        }

        public void setLastUpdateTime(String lastUpdateTime) {
            this.lastUpdateTime = lastUpdateTime;
        }

        public String getLinkTitle() {
            return linkTitle;
        }

        public void setLinkTitle(String linkTitle) {
            this.linkTitle = linkTitle;
        }

        public String getMicroImageUrl() {
            return microImageUrl;
        }

        public void setMicroImageUrl(String microImageUrl) {
            this.microImageUrl = microImageUrl;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.bannerId);
            dest.writeString(this.bannerLink);
            dest.writeString(this.bannerLinkType);
            dest.writeString(this.bannerPath);
            dest.writeString(this.bannerType);
            dest.writeString(this.lastUpdateTime);
            dest.writeString(this.linkTitle);
            dest.writeString(this.microImageUrl);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.bannerId = in.readString();
            this.bannerLink = in.readString();
            this.bannerLinkType = in.readString();
            this.bannerPath = in.readString();
            this.bannerType = in.readString();
            this.lastUpdateTime = in.readString();
            this.linkTitle = in.readString();
            this.microImageUrl = in.readString();
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.items);
        dest.writeTypedList(this.list);
    }

    public BannersByChannelBean() {
    }

    protected BannersByChannelBean(Parcel in) {
        super(in);
        this.items = in.readString();
        this.list = in.createTypedArrayList(ListBean.CREATOR);
    }

    public static final Creator<BannersByChannelBean> CREATOR = new Creator<BannersByChannelBean>() {
        @Override
        public BannersByChannelBean createFromParcel(Parcel source) {
            return new BannersByChannelBean(source);
        }

        @Override
        public BannersByChannelBean[] newArray(int size) {
            return new BannersByChannelBean[size];
        }
    };
}

